using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Add Collapse Container By Attribute Rule</para>
    /// <para>Add a collapse container by attribute rule to a diagram template</para>
    /// <para>将按属性规则折叠容器添加到逻辑示意图模板</para>
    /// </summary>    
    [DisplayName("Add Collapse Container By Attribute Rule")]
    public class AddCollapseContainerByAttributeRule : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddCollapseContainerByAttributeRule()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_is_active">
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_container_source">
        /// <para>Container Source</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public AddCollapseContainerByAttributeRule(object _in_utility_network, object _template_name, _is_active_value _is_active, object _container_source)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
            this._is_active = _is_active;
            this._container_source = _container_source;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Add Collapse Container By Attribute Rule";

        public override string CallName => "un.AddCollapseContainerByAttributeRule";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _is_active.GetGPValue(), _container_source, _where_clause, _description, _out_utility_network, _out_template_name, _reconnected_edges_option.GetGPValue()];

        /// <summary>
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Active")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _is_active_value _is_active { get; set; }

        public enum _is_active_value
        {
            /// <summary>
            /// <para>ACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ACTIVE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>INACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INACTIVE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Container Source</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Container Source")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _container_source { get; set; }


        /// <summary>
        /// <para>Expression</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Expression")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _where_clause { get; set; } = null;


        /// <summary>
        /// <para>Description</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Description")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _description { get; set; } = null;


        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        /// <summary>
        /// <para>Aggregate reconnected edges</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Aggregate reconnected edges")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _reconnected_edges_option_value _reconnected_edges_option { get; set; } = _reconnected_edges_option_value._true;

        public enum _reconnected_edges_option_value
        {
            /// <summary>
            /// <para>AGGREGATE_RECONNECTED_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("AGGREGATE_RECONNECTED_EDGES")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DONT_AGGREGATE_RECONNECTED_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DONT_AGGREGATE_RECONNECTED_EDGES")]
            [GPEnumValue("false")]
            _false,

        }

        public AddCollapseContainerByAttributeRule SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}